package com.xu.t1.model;

import java.util.Date;

public class User {
    private Long id;             // 用户ID，自增主键
    private String username;     // 用户名
    private Integer age;         // 年龄，用 Integer 对应 tinyint unsigned
    private String gender;       // 性别，M/F/O，字符串类型
    private Date createdAt;      // 录入时间
    private Integer recordCount;    // 记录数量
    private Integer version;

    public User() {}

    // Getter 和 Setter
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getRecordCount(){ return recordCount;}

    public void setRecordCount(Integer recordCount){ this.recordCount = recordCount;}

    public Integer getVersion(){ return version;}

    public void setVersion(Integer version){ this.version = version;}
}